<div class="tabbable">
	<ul class="nav nav-tabs" id="myTab">
		<li class="active"><a data-toggle="tab" href="#home"> <i
				class="green ace-icon fa fa-list-alt bigger-120"></i> 列表
		</a></li>
		@if(auth.hasPermission("licese:lice:add")){
		<li class=""><a data-toggle="tab" href="#profile">
		<i class="green ace-icon fa fa-plus bigger-120"></i> 添加
		</a></li>
		@}
	</ul>

	<div class="tab-content">
		<div id="home" class="tab-pane active clearfix">
			<form action="${ctxPath}/luence/list" method="post" id="search-form" target="list-page" class="clearfix">
				
				<div class="pull-left width-30">
					<label>sn：</label>
					<input type="text" class="width-80" name="sn"/>
					<label>公司名称：</label>
					<input type="text" class="width-80" name="vendorname"/>
				</div>
				
				<div class="pull-left width-30">
					<label>公司编码：</label>
					<input type="text" class="width-80" name="modevendorcode"/>
					<label>产品编码：</label>
					<input type="text" class="width-80" name="modeproductcode"/>
				</div>
				
				<div class="pull-left"><span class="btn btn-info btn-sm " id="search-btn">查 询</span></div>
				<div class="widget-toolbar no-border">
					<span class="btn btn-purple btn-xs" 
					onclick="Angel.downloadFile('search-form','${ctxPath}/lice/export')">
					<i class="ace-icon fa fa-cloud-upload bigger-130"></i>
					导出Excel</span>
				</div>
				
				<div class="widget-toolbar no-border">
					<div class="progress progress-striped active pos-rel" style="width:200px;display: none;" 
					data-percent="0%" id="excel-progress">
						<div class="progress-bar progress-bar-pink" style="width:0%"></div>
					</div>
				</div>
			</form>
			<hr/>
			<div id="list-page"></div>
			<script type="text/javascript">
				$("#search-form").getPageList({'submitBtnId':'search-btn'})
			</script>
		</div>

		<div id="profile" class="tab-pane">
	<form action="${ctxPath!}/lice/save" method="post" id="license-save-form">
		<div class="center padding-10">
			<label>授权产品名称：</label>
			<input type="text" class="width-50" name="name" datatype="*"  nullmsg="请输入授权名！"/>
		</div>
		<div class="center padding-10">
			<label>授权产品单价：</label>
			<input type="text" class="width-50" name="price" datatype="n"  nullmsg="请输入单价！"/>
		</div>
		<div class="center padding-10">
			<label>生产公司名称：</label>
			<input type="text" class="width-50" name="vendorname" datatype="*"  nullmsg="请输入公司名！"/>
		</div>
		<div class="center padding-10">
			<label>生产公司编码：</label>
			<input type="text" class="width-50" name="vendorcode" datatype="*"  nullmsg="请输入公司编码！"/>
		</div>
		<div class="center padding-10">
			<label>生产产品名称：</label>
			<input type="text" class="width-50" name="productname" datatype="*"  nullmsg="请输入产品名！"/>
		</div>
		<div class="center padding-10">
			<label>生产产品编码：</label>
			<input type="text" class="width-50" name="productcode" datatype="*"  nullmsg="请输入产品编码！"/>
		</div>
		<div class="center padding-10">
			<label>模块公司编码：</label>
			<input type="text" class="width-50" name="modevendorcode" datatype="*"  nullmsg="请输入模块公司编码！"/>
		</div>
		<div class="center padding-10">
			<label>模块产品编码：</label>
			<input type="text" class="width-50" name="modeproductcode" datatype="*"  nullmsg="请输入模块产品编码！"/>
		</div>
		<div class="center padding-10" >
			<label style="vertical-align: top;">授权模块描述：</label>
			<textarea type="text" class="width-50" name="content"></textarea>
		</div> 
		<div class="margin-t15">
			<span class="btn btn-info btn-block bigger-120" id="license-save-btn">保 存</span>
		</div>
	</form>
		</div>
	</div>
</div>


<#save isHide="yes" subBtnId="license-save-btn" formId="license-save-form" />
